package com.wxy.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author 47868
 * 对应数据库中的user表
 * id 只是用来生成token校验登录
 */
@TableName("user")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {
    @TableField("id")
    private int id;
    @TableId("card_id")
    private long cardId;
    private String username;
    private String password;
    private String email;
}
